package com.mediacloud.app.newsmodule.activity.military_encyclopedia

import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.mediacloud.app.assembly.util.loadX
import com.mediacloud.app.model.view.WebBrowser
import com.mediacloud.app.newsmodule.R
import com.mediacloud.app.newsmodule.fragment.imagetext.HtmlFormat

class MilitaryEncyclopediaNormalRelationAdapter : BaseQuickAdapter<RelativeEntryList,BaseViewHolder>(R.layout.item_bk_relation_normal) {
    override fun convert(helper: BaseViewHolder, item:RelativeEntryList) {
        val ivImage = helper.getView<ImageView>(R.id.guideImg)

        ivImage.loadX(item.logo,2,1,false,null)
        helper.setText(R.id.tvTitle,item.title)
        helper.setText(R.id.tvMeanings,item.shortTitle)
    }

}